<template>
  <nav-bar>
    <div slot="center">{{ title }}</div>
  </nav-bar>
</template>

<script>
  import NavBar from "./NavBar";

  export default {
    name: "viewIndex",
    data() {
      return {
        title: null,
      };
    },
    components: {
      NavBar,
    },
    created() {
      this.title = this.$route.matched[0].meta.title;
    },
  };
</script>

<style scoped></style>
